<?php
    $arr = array("bách khoa", "ngủ");
    foreach($arr as $value){
        $value = utf8_encode($value);
    }
    echo json_encode($arr);
?>